#include "PE5_emp.h"

using std::cout;
using std::endl;
using std::cin;
using std::string;
using std::getline;

abstr_emp::~abstr_emp() {}

void abstr_emp::ShowAll() const {   // labels and shows all data
    std::cout << "Name: " << lname << ", " << fname << std::endl
        << "Job: " << job << endl;
}

void abstr_emp::SetAll(){
    cout << "Enter first name: ";
    getline(cin, fname);
    cout << "Enter last name: ";
    getline(cin, lname);
    cout << "Enter job title: ";
    getline(cin, job);
};          

std::ostream & operator<<(std::ostream & os, const abstr_emp & e)
{
    os << e.lname << " " << e.fname ;
    return os;
}
